import com.android.build.gradle.LibraryExtension
import com.lean.android.plugin.convention.libs
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.dependencies

class KoinLibraryConventionPlugin : Plugin<Project> {

    override fun apply(target: Project) {
        with(target) {
            extensions.configure<LibraryExtension> {
                dependencies {
                    add("implementation", libs.findLibrary("koin-core").get())
                }
            }
        }
    }
}